package com.zyw.customcalendar.dao;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class CalendarSQLite extends SQLiteOpenHelper {

	public final String CALENDAR_EVENT_TABLE_NAME = "CALENDAR_EVENT_TABLE";
	
	private final String CALENDAR_EVENT_TABLE = "CREATE TABLE CALENDAR_EVENT_TABLE(" +
			"_id integer primary key, user_id text,content text," +
			"start_date text,start_time text,end_date text,end_time text," +
			"note_content text,location text,chixu_index text,chongfu_index text)";
	
	
	
	public CalendarSQLite(Context context, String name, CursorFactory factory,
			int version) {
		super(context, name, factory, version);
		// TODO Auto-generated constructor stub
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		// TODO Auto-generated method stub
		//������
		db.execSQL(CALENDAR_EVENT_TABLE);
	}

	@Override
	public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {
		// TODO Auto-generated method stub

	}

}
